package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.Vendor;
import com.hellogood.yaohuo.shared.services.VendorService;

public class VendorServiceImpl extends RemoteServiceServlet implements VendorService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2050891714486900363L;

	@Override
	public List<Vendor> getAllVendorList() {
		return MgrFactory.getInstance().createVendorMgr().getVendorList();
	}

	@Override
	public Vendor getVendorByCode(String code) {
		return MgrFactory.getInstance().createVendorMgr().getVendorByCode(code);
	}

	@Override
	public List<Vendor> searchVendorByText(String text) {
		return MgrFactory.getInstance().createVendorMgr().searchVendorByText(text);
	}

}
